const iconGen = require('icon-gen');
const path = require('path');

async function generateIcons() {
  try {
    const files = await iconGen(
      path.resolve(__dirname, '../assets/icon.svg'),
      path.resolve(__dirname, '../assets'),
      {
        report: true,
        icns: {
          name: 'icon',
          sizes: [16, 32, 64, 128, 256, 512, 1024]
        }
      }
    );
    
    console.log('Icons generated successfully:', files);
  } catch (error) {
    console.error('Error generating icons:', error);
  }
}

generateIcons();